package com.example.noteback.permission.controller;

import com.example.noteback.permission.anno.Permissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("permissions")
public class PermissionsController {

    @Permissions(value = "/permissions/getUser")
    @GetMapping("/getUser")
    public String getUser(){
        return "User";
    }

    @Permissions(value = "/permissions/getAGi")
    @GetMapping("/getAGi")
    public String getAGi(){
        return "AGi";
    }
}
